/**
 * 作者：陈文斌 on 2019/1/22.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:json_annotation/json_annotation.dart';
import 'package:crm/model/ClientManager/client_info_model.dart';
import 'package:crm/model/Feedback/feedback_image_model.dart';
import 'package:crm/model/Feedback/feedback_process_model.dart';

part 'feedback_model.g.dart';

@JsonSerializable()
class FeedbackModel extends Object with _$FeedbackModelSerializerMixin {
  String customerId;
  ClientInfoModel customer;
  String details;
  String id;
  int processingStatus;
  String receiver;
  String recordTime;
  String telphone;
  List<FeedbackImageModel> feedbackImage;
  List<FeedbackProcessModel> feedbackProcesss;
  List<FeedbackImageModel> images;

  FeedbackModel(
    this.customerId,
    this.customer,
    this.details,
    this.id,
    this.processingStatus,
    this.receiver,
    this.recordTime,
    this.telphone,
    this.feedbackImage,
    this.feedbackProcesss,
    this.images,
  );

  @override
  factory FeedbackModel.fromJson(Map<String, dynamic> json) => _$FeedbackModelFromJson(json);
}
